$(function  () {
    //获取班级
    var uid = $.cookie("lid");
    $.ajax({
        url: ipurl+'/user/getbyid',
        data: {
            ID:uid
        },
        type: "POST",
        //dataType: "json",
         success: function(resultper) {
            var name = resultper.data.results[0].USERNAME;
            var xnum = resultper.data.results[0].XNUM;
            var colleage = resultper.data.results[0].COLLEAGE;
            $("#name").html(name);
            $("#xnum").html(xnum);
            $("#colleage").html(colleage);
        }
    });
})


